﻿using System;
using System.Runtime.Serialization;

namespace Trentacular.Office.Server.Search.FacetedSearch
{
    /// <summary>
    /// Represents a single key/value pair used to configure a facet provider.
    /// </summary>
    [Serializable]
    [DataContract(Name = "Property", Namespace = OfficeServerSearchNamespace.Value)]
    public class ConfigurationProperty
    {
        /// <summary>
        /// Gets or sets the key.
        /// </summary>
        /// <value>The key.</value>
        [DataMember(Name = "Key", IsRequired = true)]
        public string Key { get; set; }

        /// <summary>
        /// Gets or sets the value.
        /// </summary>
        /// <value>The value.</value>
        [DataMember(Name = "Value", IsRequired = true)]
        public string Value { get; set; }
    }
}
